#ifndef _TRANS_TO_UI_TPMS_H_
#define _TRANS_TO_UI_TPMS_H_

#include "config.h"


typedef enum _enumTireLinkItem{
	enumSettingTireLinkItemLF=0,//左前轮胎
	enumSettingTireLinkItemRF,//左后
	enumSettingTireLinkItemLR,//右前
	enumSettingTireLinkItemRR,//右后
		
	enumSettingTireLinkItemMax,
}enumSettingTireLinkItem;

	typedef struct _TRANS_TO_UI_TPMS_INFO{
		U8 selectWhich;
		U8 selectWhichPre;
		U32 alarmRefreshTime;
		BOOL bShowTPMSEnble;
		BOOL bHaveShowFirst;
		U32 firstShowTPMSTimer;
		U32 tpmsAlarmStatus;
		U32 tpmsAlarmStatusPre;
		U8 tpmsAlarmStatusCount;
	}TRANS_TO_UI_TPMS_INFO;



	#ifndef		_TRANS_TO_UI_TPMS_GLOBAL_
		#define		TRANS_TO_UI_TPMS_GLOBAL		extern
	#else
		#define		TRANS_TO_UI_TPMS_GLOBAL	
		//局部申明:.........	
	#endif
	
TRANS_TO_UI_TPMS_GLOBAL TRANS_TO_UI_TPMS_INFO transToUITPMSInfo;		
		
BOOL isShowTPMSEnble(void);		
void tpmsFirstShowExit(void);
void tpmsFirstShowSet(void);
void tpmsFirstShowClr(void);
BOOL tpmsForceShow(void);
void transTPMSAlarmProc(void);	
void transTPMSDataDeal(u8 whichTire);
void transTPMSPageDeal(u8 whichTire);
void transToUITPMSInit(void);

#endif
		
